<?php
/**
 * Created by PhpStorm.
 * User: renyi
 * Date: 2017/10/16
 * Time: 下午23:36
 */

namespace App\Misc;


class URLToolkit
{
    /**
     * 替换{id}
     *
     * @param $replace
     * @param $url
     * @return mixed
     */
    public static function replaceID($replace, $url)
    {
        return str_replace("{id}", $replace, $url);
    }

    /**
     * 替换{application_id}
     *
     * @param $replace
     * @param $url
     * @return mixed
     */
    public static function replaceApplicationID($replace, $url)
    {
        return str_replace("{application_id}", $replace, $url);
    }
}